﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Security.Cryptography;
using System.Text;
using System.Threading.Tasks;

namespace Entity.Models
{
    /// <summary>
    /// 民用
    /// </summary>
    [Table("MeterInfo")]
    public class MeterInfo
    {
        [Key]
        public int ID { get; set; }// int auto_increment primary key,
        public string? sequence { get; set; }// nvarchar(32),
        public string? domainId { get; set; }// nvarchar(32),
        public string? orgId { get; set; }// nvarchar(32),
        public string? meterCode { get; set; }// nvarchar(32),
        public string? deviceCode { get; set; }//  nvarchar(32),
        public string? conMeterCode { get; set; }// nvarchar(32),
        public string? protocolTypeCode { get; set; }// nvarchar(32),
        public string? modelCode { get; set; }// nvarchar(32),
        public string? meterTypeCode { get; set; }// nvarchar(32),
        public string? mrFactoryCode { get; set; }// nvarchar(32),
        public string? meterFactoryCode { get; set; }// nvarchar(32),
        public decimal? baseNo { get; set; }// decimal (18,3),
        public string? installDate { get; set; }//  nvarchar(32),
        public string? inDirection { get; set; }// nvarchar(32),
        public string? commMode { get; set; }//  nvarchar(32),
        public string? installPostion { get; set; }//  nvarchar(300),
        public string? longitude { get; set; }// nvarchar(32),
        public string? latitude { get; set; }//  nvarchar(32),
        public string? nbImei { get; set; }//  nvarchar(32),
        public string? nbImsi { get; set; }// nvarchar(32),
        public string? appKey { get; set; }
        public string? appEui { get; set; }
        public string? devEui { get; set; }
        public int? valveStatus { get; set; }// int,
        public string? meterCategory { get; set; }
        public string? calcTypeCode { get; set; }

        public string? uniqueDeviceIdentifier { get; set; }//  nvarchar(64),
        public int? IsDelete { get; set; }//  int,
        public int? IsStatus { get; set; }//  int,
        public string? ResultMsg { get; set; }// nvarchar(200),
        public DateTime? RegisterDate { get; set; }// datetime,
        public DateTime? DeleteDate { get; set; }//  datetime,

        public DateTime? CreateDate { get; set; }// datetime
    }
}
